package com.peas.platform.module.icims.base.sys.service;

import com.peas.platform.framework.mybatisplus.service.BaseService;
import com.peas.platform.module.icims.base.mdm.enums.FileType;
import com.peas.platform.module.icims.base.sys.dto.AttachmentDto;
import org.springframework.web.multipart.MultipartFile;

import java.io.InputStream;
import java.util.List;
import java.util.zip.ZipOutputStream;

public interface AttachmentService extends BaseService<AttachmentDto> {

    AttachmentDto upload(MultipartFile file, FileType fileType);

    InputStream getObject(Long id);

    InputStream getObject(AttachmentDto dto);

    void zipFiles(List<AttachmentDto> list, ZipOutputStream fileOutputStream);

}
